package manager.point;

import java.io.*;
import common.db.*;
import common.main.*;

public class PointUpdateBean extends MainBean
{
	public void funcExecute() throws Exception
	{
		String id = (String)inputTable.get("id");
		String point = (String)inputTable.get("point");
		String exDate = (String)inputTable.get("exDate");
		String pointStart = (String)inputTable.get("pointStart");
		String client = (String)inputTable.get("client");
		String useYn = (String)inputTable.get("useYn");
		
		queryBuffer = new StringBuffer("");
		queryBuffer.append("UPDATE POINT SET POINT_VALUE='"+point+"', EXPERATION_DATE='"+exDate+"', POINT_START_DATE='"+pointStart+"', USEYN='"+useYn+"', ");
		queryBuffer.append("UPD_ID='"+id+"', UPD_DATE=SYSDATE, UPD_IP='"+client+"' ");
		queryBuffer.append("WHERE ID='"+id+"'");

		DBExecute dbe = new DBExecute(queryBuffer.toString());
		outputList = dbe.getDataList();
	}
}